package com.aaa.ssm.controller;

import com.aaa.ssm.service.GradeService;
import com.aaa.ssm.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author AUSU
 * @version 1.0
 * 创建时间：2025/3/23 20:02
 */
@RestController
@RequestMapping("grade")
public class GradeController {

    @Autowired
    private GradeService gradeService;

    @GetMapping
    public AjaxResult list(){

        return gradeService.listAllGrade();
    }

}
